Post

Replies

Boosts

Views

Activity

Pickerview is closing before done button is pressed on toolbar
I do have a pickerview with toolbar, but when i scroll it closes before I press the done button. the button is there but somehow useless. how to make pickerview close only after pressing the done button?I added done button like this : let doneBtn = UIBarButtonItem(title: "Done", style: .plain, target: self, action: #selector(RoundShapeController.dismissKeyboard)) toolbar.setItems([doneBtn], animated: false) toolbar.isUserInteractionEnabled = true materialTextField.inputAccessoryView = toolbar
1
0
1.2k
Mar ’20